package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Mould_BillMain", description = "模具保养单")
@TableName(value = "Mould_BillMain")
public class MouldBillMain extends FBaseEntity implements Serializable {


    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("保养单号")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "billNo")
    private String billNo;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("保养单类型（计划/日常）")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "billType")
    private String billType;
    
    @ApiModelProperty("保养日期")
    @TableField(value = "billDate")
    private Date billDate;
    
    @ApiModelProperty("保养开始时间")
    @TableField(value = "beginDate")
    private Date beginDate;
    
    @ApiModelProperty("保养结束时间")
    @TableField(value = "endDate")
    private Date endDate;
    
    @ApiModelProperty("模具ID")
    @TableField(value = "moldID")
    private Long moldID;
    
    @ApiModelProperty("保养模板ID")
    @TableField(value = "tempID")
    private Long tempID;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("保养类型(次数保养，天数保养)")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "maintainType")
    private String maintainType;
    
    @ApiModelProperty("点检/保养状态（0：新建保养，1：已派单，2：保养中，3：已保养）")
    @TableField(value = "status")
    private Long status;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;
    
    @ApiModelProperty("上次保养时间")
    @TableField(value = "lastMaintainTime")
    private Date lastMaintainTime;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("派单人")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "dispatch")
    private String dispatch;
    
    @ApiModelProperty("派单时间")
    @TableField(value = "dispatchDate")
    private Date dispatchDate;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("保养人员")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "repairStaff")
    private String repairStaff;
    
    @ApiModelProperty("保养时间")
    @TableField(value = "repairStaffDate")
    private Date repairStaffDate;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("审核人")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "checker")
    private String checker;
    
    @ApiModelProperty("审核时间")
    @TableField(value = "checkDate")
    private Date checkDate;






}

